/*
 * help.cpp
 *
 *  Created on: 14.02.2009
 *      Author: george
 */

#include "help.h"

MyHelp::MyHelp(const int h, const int w){
	setFixedSize(w,h);
	QFile data("help.html");
	setReadOnly(true);
	if (data.exists())
	if (data.open(QFile::ReadOnly)){
		QTextStream fin(&data);
		fin.setCodec("UTF-8");
		setHtml(fin.readAll());
	}
	
}

void MyHelp::keyPressEvent(QKeyEvent * event){
	if (event->key() == Qt::Key_Backspace) close();
	else QTextEdit::keyPressEvent(event);
}
